package com.aiti.lulian.controller;

import com.aiti.base.core.utils.message.Message;
import com.aiti.lulian.entity.LuLianGys;
import com.aiti.lulian.service.ILulianActivityService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.UUID;

/**
 * @ClassName LuLianGysController
 * @Description TODO
 * @Author chenxianzhen
 * @Date 2024/6/13 21:07
 */
@RestController
@RequestMapping("/gys")
public class LuLianGysController {
    @Resource
    ILulianActivityService lulianActivityService;

    @PostMapping("/signUp")
    public Message save(@RequestBody LuLianGys luLianGys) {
        luLianGys.setBaseId(UUID.randomUUID().toString());
        lulianActivityService.saveGys(luLianGys);
        return Message.success();
    }
}
